cbor-no-std 0.3.0

cbor-no-std is a CBOR Deserializer for Rust which runs in a no_std environment.
Documentation

Serde CBOR Rust - no_std

Serde CBOR Rust is a CBOR Deserializers for Rust which runs in a no_std environment.

Currently only a deserializer is implemented and it only deserializes u8s and slices of u8s.

For a fully working implmentation use pyfisch's cbor

Usage

extern crate cbor_no_std
use cbor_no_std::from_slice;

println!("{:?}", from_slice::<Value>(b"\x83\x01\x02\x03").unwrap());
// => Array(1, 2, 3)
println!("{:?}", from_slice::<Value>(b"\x01").unwrap());
// => U64(1)
println!("{:?}", from_slice::<Value>(b"\x18\x2a").unwrap());
// => U64(42)